package com.pig4cloud.pig.module.api.entity.devices;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 访客预约记录对象 estate_appointment_record
 *
 * @author ruoyi
 * @date 2023-09-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_appointment_record")
public class EstateAppointmentRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 小区id
     */
    private Long estateId;

    /**
     * 小区名称
     */
    private String estateName;

    /**
     * 申请人id
     */
    private Long userId;

    /**
     * 申请到访开始时间
     */
    private Date beginTime;

    /**
     * 申请到访结束时间
     */
    private Date endTime;

    /**
     * 房间id
     */
    private Long roomId;

    /**
     * 访客人手机号
     */
    private Long phoneNum;

    /**
     * 访客姓名
     */
    private String realName;

    /**
     * 访客车牌号
     */
    private String carNum;

    /**
     * 到访人数
     */
    private Long userCount;

    /**
     * 访客身份证
     */
    private String idNo;

    /**
     * 人脸头像参与对比
     */
    private String faceUrl;

    /**
     * 申请状态
     */
    private Long state;

    /**
     * 申请时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private String roomNo;

}
